package com.wollo.config;

import com.wollo.interceptor.SignInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author OuYang
 * @date 2024/9/1720:20
 * @description
 */
@Configuration
public class SignInterceptorConfig extends WebMvcConfigurerAdapter {
    @Autowired
    private SignInterceptor signInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(signInterceptor).addPathPatterns("/sign/userSign");
    }

}
